#1.定义变量，接受用户的输入
t_shirt = float(input('请输入T恤的单价'))
pans= float(input('请输入裤子的单价'))
t_shirt_count = int(input('共买了几件T恤'))
pans_count = int(input('公卖了几件裤子'))

#2.算术运算
num = t_shirt * t_shirt_count + pans_count * pans
print(f'num={num}')
#折扣
discount = 0.88
#计算折扣价
discount_num = num * discount
print(f'折后discount_num={discount_num}元')